<style>
    .tips{
        cursor: pointer;
    }
    .layui-table tr td{
        margin-top: 10px;
        min-width: 50px;
        height: 50px;
    }
</style>
<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>地址：</b>{$site.address}
    </div>
    <strong>{$site.copyright} <a href="javascript:;">{$site.company}</a>.</strong> All rights
    reserved.
</footer>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
     immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- Bootstrap 3.3.7 -->
<!-- <script src="__STATIC__/bower_components//bootstrap/dist/js/bootstrap.min.js"></script> -->
<!-- FastClick -->
<script src="__STATIC__/bower_components//fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="__JS__/adminlte.min.js"></script>
<!-- Sparkline -->
<script src="__STATIC__/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap  -->
<script src="__STATIC__/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="__STATIC__/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- SlimScroll -->
<script src="__STATIC__/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script><!-- ChartJS -->
<script src="__STATIC__/bower_components/chart.js/Chart.js"></script>
<script>
    $(function () {
        layui.use('layer',function () {
            var layer = layui.layer;
            $(document).on('click','.logout',function (e) {
                e.preventDefault();
                $.get('/admin/user/logout',function (result) {
                    if(!result.status){
                        layer.alert('退出失败',{icon:5});
                    }
                    layer.alert('退出成功',{icon:6,end:function () {
                        location.reload();
                    }});
                });
            });
            $(document).on('click','.tips',function(){
                var that = this,
                    tip = $(this).attr('data-tips');
                if(tip){
                    layer.tips(tip, that);
                }
            });
            $('li.active').parent('ul.treeview-menu').parent('li.treeview').addClass('active');
            $(document).keydown(function(event){
                var e = event || window.event;
                var k = e.keyCode || e.which;
                var data = $('form').serialize();
                if(e.altKey && k===13){
                    $.post('{:Url("admin/download/export")}',data,function (result) {
                        if(result.code){
                            layer.alert(result.msg,{icon:5});
                            return false;
                        }
                        layer.alert(result.msg,{icon:6,end:function () {
                            location.href = result.data.url;
                        }});
                    });
                }
            });
        });
    });
</script>
</body>
</html>
